﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Menadzer/ManagerModule.Master" AutoEventWireup="true" CodeBehind="ListaPokoi.aspx.cs" Inherits="Hotel_Management.Manager.ListaPokoi" %>
<asp:Content ID="Content1" runat="server" contentplaceholderid="MainContent2">
<p>
        Zarządzanie listą pokoi znajdujących się w hotelu:</p>
<p>
        &nbsp;<asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="Hotel2.App_Data.BazaDanych" EntityTypeName="" TableName="Pokojes" EnableDelete="True" EnableInsert="True" EnableUpdate="True">
        </asp:LinqDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
            AllowSorting="True" AutoGenerateColumns="False" AutoGenerateDeleteButton="True" 
            AutoGenerateEditButton="True" CellPadding="2" 
            DataSourceID="LinqDataSource1" EnablePersistedSelection="True" 
            EnableSortingAndPagingCallbacks="True" ForeColor="Black" 
            ShowHeaderWhenEmpty="True" HorizontalAlign="Center" Width="80%" 
            BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" 
            GridLines="None" DataKeyNames="nr_pokoju">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <Columns>
                <asp:BoundField DataField="nr_pokoju" HeaderText="nr_pokoju" ReadOnly="True" SortExpression="nr_pokoju" />
                <asp:BoundField DataField="il_osob" HeaderText="il_osob" SortExpression="il_osob" />
                <asp:CheckBoxField DataField="TV" HeaderText="TV" SortExpression="TV" />
                <asp:CheckBoxField DataField="lazienka" HeaderText="lazienka" 
                    SortExpression="lazienka" />
                <asp:CheckBoxField DataField="kuchnia" HeaderText="kuchnia" 
                    SortExpression="kuchnia" />
                <asp:CheckBoxField DataField="internet" HeaderText="internet" 
                    SortExpression="internet" />
                <asp:BoundField DataField="cena_doba" HeaderText="cena_doba" SortExpression="cena_doba" />
            </Columns>
            <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
        </asp:GridView>
    </p>
    <p>
    </p>
    <asp:Panel ID="Panel1" runat="server" Height="289px">
        <asp:Label ID="textNumerPokoju" runat="server" CssClass="label" Text="Numer pokoju:"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox1" runat="server" CssClass="textBox"></asp:TextBox>
        <asp:Label ID="error1" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        <br />
        <br />
        <asp:Label ID="textIloscOsob" runat="server" CssClass="label" Text="Ilość osób:"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox2" runat="server" CssClass="textBox"></asp:TextBox>
        <asp:Label ID="error2" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        <br />
        <br />
        <asp:Label ID="textCenaDoba" runat="server" CssClass="label" Text="Cena doba:"></asp:Label>
        <br />
        <asp:TextBox ID="TextBox3" runat="server" CssClass="textBox"></asp:TextBox>
        <asp:Label ID="error3" runat="server" Font-Bold="True" Font-Overline="False" Font-Size="Larger" ForeColor="#CC0000" Text="!!!!!" Visible="False"></asp:Label>
        <br />
        <asp:CheckBoxList ID="CheckBoxList1" runat="server" CssClass="label" Height="17px" Width="190px">
            <asp:ListItem>TV</asp:ListItem>
            <asp:ListItem>Lazienka</asp:ListItem>
            <asp:ListItem>Kuchnia</asp:ListItem>
            <asp:ListItem>Internet</asp:ListItem>
        </asp:CheckBoxList>
        <asp:Button ID="submitButton" runat="server" CssClass="textBox" OnClick="SubmitButtonClick" Text="Zapisz" Width="130px" />
        <br />
    </asp:Panel>
</asp:Content>

